import axios from 'axios'

const service = axios.create({
  baseURL: '/api',
  timeout: 10 * 1000
})

service.interceptors.response.use(
  res => {
    return res.data
  },
  error => {
    return Promise.reject(error)
  }
)

export default service
